import request from "../utils/request";

// 用户登录
export function login(data){
    return request({
        url:'/login',
        method:'POST',
        contentType: 'application/json; charset=utf-8',
        data
    })
}

// 用户注册
export function register(data){
    return request({
        url:'/register',
        method:'POST',
        contentType: 'application/json; charset=utf-8',
        data
    })
}

//展示用户信息
export function view(data){
    return request({
        url:'/client/view',
        method:'POST',
        contentType: 'application/json; charset=utf-8',
        data
    })
}


